year=int(input(''))

if year%400==0:
    print('y')
elif year%4==0 and year%100!=0:
    print('y')
else:
    print('n')